echo off
echo ==========================================================================
echo $Id: make-inputdata.bat 38 2012-11-27 11:37:39Z denis.skalsky@gmail.com $
echo ==========================================================================
echo 1) Delete .\bin\classes\com\globallogic\skalskyy\javabasic\inputdata\*.class
del /S .\bin\classes\com\globallogic\skalskyy\javabasic\inputdata\*.class
echo ==========================================================================
echo 2) Delete .\bin\testclasses\com\globallogic\skalskyy\javabasic\inputdata\*.class
del /S .\bin\testclasses\com\globallogic\skalskyy\javabasic\inputdata\*.class
echo ==========================================================================
echo 3) Compile source: .\src\com\globallogic\skalskyy\javabasic\inputdata\*.java
javac -d .\bin\classes .\src\com\globallogic\skalskyy\javabasic\inputdata\*.java
echo ==========================================================================
echo 4) Compile tests: .\test\com\globallogic\skalskyy\javabasic\inputdata\*.java
javac -d .\bin\testclasses -classpath "C:\Program Files\Java\jdk1.6.0_37\lib\junit4.10\junit-4.10.jar";"C:\Program Files\Java\jdk1.6.0_37\lib\easymock-3.1\easymock-3.1.jar";".\bin\classes" .\test\com\globallogic\skalskyy\javabasic\inputdata\*.java
echo ==========================================================================
echo 5) Run unit tests
java -classpath "C:\Program Files\Java\jdk1.6.0_37\lib\junit4.10\junit-4.10.jar";"C:\Program Files\Java\jdk1.6.0_37\lib\easymock-3.1\easymock-3.1.jar";".\bin\testclasses";".\bin\classes" org.junit.runner.JUnitCore com.globallogic.skalskyy.javabasic.inputdata.DataValidatorTest
echo ==========================================================================
echo 6) Create package: inputdata.jar
jar cvf inputdata.jar -C .\bin\classes \com\globallogic\skalskyy\javabasic\inputdata
echo ==========================================================================
echo 7) Run unit tests for package
del /S .\bin\classes\com\globallogic\skalskyy\javabasic\inputdata\*.class
java -classpath "C:\Program Files\Java\jdk1.6.0_37\lib\junit4.10\junit-4.10.jar";"C:\Program Files\Java\jdk1.6.0_37\lib\easymock-3.1\easymock-3.1.jar";".\bin\testclasses";".\inputdata.jar" org.junit.runner.JUnitCore com.globallogic.skalskyy.javabasic.inputdata.DataValidatorTest